// behaviors/font-size.js
module.exports = Behavior({
  data: {
    selectedFontSize: 'normal'
  },

  lifetimes: {
    attached() {
      const app = getApp()
      this.setData({
        selectedFontSize: app.getFontSize()
      })
    }
  },

  pageLifetimes: {
    show() {
      const app = getApp()
      this.setData({
        selectedFontSize: app.getFontSize()
      })
    }
  }
}) 